package com.wx.mall.order.controller;


import com.wx.mall.common.api.CommonResult;
import com.wx.mall.order.dto.ReOrderDto;
import com.wx.mall.order.service.impl.ReturnOrderItemServiceImpl;
import com.wx.mall.order.vo.GoodReturnItemVo;
import com.wx.mall.order.vo.GoodReturnVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 退款订单项 前端控制器
 * </p>
 *
 * @author j
 * @since 2020-05-09
 */
@RestController
@RequestMapping("/return/order/item")
public class ReturnOrderItemController {

    @Autowired
    ReturnOrderItemServiceImpl service;

    @ApiOperation(value = "跳转页面查询")
    @PostMapping("/getFindGood")
    public CommonResult<List<GoodReturnItemVo>> getFindGoods(GoodReturnVo ids){
        System.out.println("这个是"+ids.getIds());
        List<GoodReturnItemVo> list=service.getFindGood(ids);
        System.out.println(list);
        return CommonResult.success(list);
    }
}

